package com.dayuanit.dy14.enter.dy14enter1024.mapper;

import com.dayuanit.dy14.enter.dy14enter1024.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> listUser4Group();

    int updateGroup(@Param("userId") Integer userId,
                    @Param("groupId") Integer groupId);


    List<User> listUserByGroupId(Integer groupId);

    List<User> listUser4Email();
}